package com.cskaoyan.bean;

import org.springframework.stereotype.Component;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @auther zk
 * @date 2022/7/20 11:30
 */
@Component
public class MemoryBean {

    // 临时存储手机号和验证码，定时清除过期数据
    public ConcurrentHashMap<String, String> mobileAndCode = new ConcurrentHashMap<>();

    // 存储登陆的token-userId键值对
    public ConcurrentHashMap<String, Integer> tokenAndUserId = new ConcurrentHashMap<>();

}
